#include<stdio.h>


int main()
{
	int a = 0;
	int b = 0;
	for (a = 2; a <= 100; a++)
	{
		for (b = 2; b <= a; b++)
		{
			if (b == a)
			{
				printf("%d ", a);
			}
			if (a % b == 0)
				break;
		}
	}
	return 0;
}